<!--{template header}-->
<!--{if $_SGLOBAL['guidemode']}-->
<!--{template space_guide}-->
<!--{else}-->
<!--{template cp_header}-->
<!--{/if}-->

<script type="text/javascript">
	function sendEmailCheck() {
		var email = $('email').value;
		var passwd = $('password').value;
		var x = new Ajax();
		x.get('cp.php?ac=sendmail&op=sendcheck&email=' + email+'&pwd='+passwd, function(s){
			$('checkresult').innerHTML = s;
		});
	}
</script>
<form method="post" action="cp.php?ac=skill" class="c_form">

<table cellspacing="0" cellpadding="0" class="formtable">
<caption>
	<h2><strong>作为玩家：</strong>兴趣爱好</h2>
</caption>	
</table>
<div id="selectTypeSecond" class="plr20" style="margin-bottom:10px;"></div>
<script type="text/javascript">
	coreTypeJs = <!--{$json_core_type}--> ;
	showAllCoreType('selectTypeSecond','interest') ;
	setAllCoreType('selectTypeSecond','interest',<!--{$interest}--> ) ;
</script>

<table cellspacing="0" cellpadding="0" class="formtable">
	<caption>
		<h2><strong>作为教头：</strong>
		<label>
		<input type="checkbox" name="coachcheckbox" value="1" onclick="showOrHidenSkill(this.checked)" />
		认证为教头
		</label>
		</h2>
	</caption>
</table>

<script type="text/javascript">
function showOrHidenSkill(ch){
	var skillDiv = document.getElementById('skill_detail');
	if(ch){
		skillDiv.style.display = '';
	}else{
		skillDiv.style.display = 'none';
	}
}

</script>

<div id="skill_detail" class="plr20" style="display:none;">
	<!--{if $space[name] && empty($_GET['namechange'])}-->
		<span style="font-weight:bold;"><!--{eval echo stripslashes($space['name']);}--></span>
		<!--{if $space[namestatus]}-->[<font color="red">认证通过</font>]<!--{/if}-->
	<!--{else}-->
	<strong>擅长技能：</strong>
	<div id="skill_select" class="pbt5"></div>
	
	<strong>相关履历：</strong>
	<div class="pbt5">
	<textarea name="resume" style="width:500px;height:90px;">$space[resume]</textarea>
	</div>
	
	<strong>真实姓名：</strong>
	<div class="pbt5">
	<input type="text" id="name" name="name" value="<!--{eval echo stripslashes($space['name']);}-->" class="t_input" /> 
	</div>
	<!--{/if}-->
</div>

<script type="text/javascript">
	showAllCoreType('skill_select','skill') ;
	setAllCoreType('skill_select','skill',<!--{$skill}--> ) ;
</script>



<!--{if $_SGLOBAL['guidemode']}-->
<br>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
	<td><a href="space.php?do=home&view=guide&step=1">返回</a></td>
	<td align="center">
	<input type="hidden" name="guidemode" value="1">
	<input type="submit" name="profilesubmit" value="下一步" class="submit" />
	</td>
	<td align="right"><a href="space.php?do=home&view=guide&step=3">跳过&gt;&gt;</a></td>
</tr>
</table>
<!--{else}-->
<div style=" text-align:center;">
<input type="submit" name="profilesubmit" value="提交" class="submit" />
</div>
<!--{/if}-->

<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
<!--{template footer}-->